package org.celery.core.secure;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 认证会员
 *
 * @author Celery
 * @since 2021-11-26
 */
public class AuthMember implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(
            hidden = true
    )
    private String clientId;
    @ApiModelProperty(
            hidden = true
    )
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    @ApiModelProperty(
            hidden = true
    )
    private String nickname;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }
}
